<include file=".:Common:header" />
<script language="javascript">
$(function(){
	$('#datagrid').datagrid({
		toolbar:[{
			id:'btn-select',
			text:'查询',
			iconCls:'icon-search',
			handler:function(){
			 $('#query').window('open');
			}
		}]
	});
});

function query(){
	  $('#datagrid').datagrid('options').queryParams={
	  data:{
	  uid:$('#query').find('#uid').val(),
	  opt:$('#query').find('#opt').val(),
	  content:$('#query').find('#content').val()
	    }
	  }
	  $('#datagrid').datagrid('reload');
	  $('#query').window('close');
}
</script>
<div id="wrapper" class="wrapper clear">
	<div class="main" style="padding-top:10px">
        <div class="table_wrap">
        	<div class="table_list">
<table id="datagrid" width="100%" title="日志列表" url="{:U('system/Log/lst')}" pagination="true"  singleSelect="true" striped="true"  idField="id">
	<thead>
        <tr>
            <th field="id" width="50" sortable="true" checkbox="true">ID</th>
            <th field="uid" width="100" sortable="true">用户名称</th>
            <th field="opt" width="150" sortable="true" align="left">操作</th>
            <th field="content" width="150">内容</th>
            <th field="datetime" width="150" sortable="true" align="left">添加时间</th>
            <th field="ip" width="150" sortable="true">IP地址</th>
        </tr>
    </thead>
</table>
			</div>
		</div>		
	</div>
</div>	
<!--query-->
   <div id="query" class="easyui-window" title="查询" style="width:500px;height:200px;" iconCls="icon-search" closed="true" maximizable="false" minimizable="false" collapsible="false" resizable="false" modal="true" shadow="true">
         <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table">
           <tr>
            <td class="label">操作：</td>
            <td>
            <input type="text"  id="opt" name="opt" style="width:200px;" class="easyui-validatebox input" />
            </td>
          </tr>
          <tr>
            <td class="label">内容：</td>
            <td>
            <input type="text"  id="content" name="content" style="width:200px;" class="easyui-validatebox input" />
            </td>
          </tr>
            <tr>
            <td class="label">&nbsp;</td>
 			<td><a class="easyui-linkbutton" iconCls="icon-search" href="javascript:void(0);" onclick="query()">查询</a></td>
          </tr>
          </table>
    </div>
<!--end-query-->          
<include file=".:Common:footer" />